/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.com.transportes.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import pe.com.transportes.modelo.Paradas;
import pe.com.transportes.modelo.Ruta;



public class ParadasDAO {


      public void insertarparadas(Connection con,Paradas c) throws SQLException{

    String sql ="insert into paradas values (?,?,?,?,?,?)";
    PreparedStatement ps = con.prepareStatement(sql);


    System.out.println("codigo dao "+c.getCod_parada());

    ps.setInt(1,c.getCod_parada());
    ps.setInt(2, c.getCod_ruta());
        ps.setString(3,c.getParada1());
        ps.setString(4, c.getParada2());
        ps.setString(5,c.getParada3());
ps.setString(6,c.getParada4());

    ps.executeUpdate();
    }



}
